package com.zhome.gateway.web;

import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;
import org.springframework.web.client.RestTemplate;

@RestController
@RequestMapping("/test/")
@Slf4j
public class TestController {

    @Autowired
    private RestTemplate restTemplate;

    @RequestMapping("/echo")
    public String echo() {
        return restTemplate.getForObject("http://enn-iot-imp-tool/pointConfigTask/getPointProjects", String.class);
    }

}
